package com.lhl.jpa.domain;

import io.swagger.annotations.Api;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @className: com.lhl.jpa.domain.Author
 * @description: TODO 类描述
 * @author: king
 * @date: 2021-02-05 10:06
 **/
@Api(tags = "Author", produces = "Author")
@Entity
@Data
public class Author implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String name;
    private String genre;
    private int age;

}
